{% extends "index.html" %}
{% load adminmedia %}

{% block extrastyles2 %}
 <link rel="stylesheet" type="text/css" href="/media/filebrowser/css/filebrowser.css" />
{% if query.pop %}
<style type="text/css">
#header { display: none; }
.breadcrumbs { display: none; }
</style>
{% endif %}
{% endblock %}

{% block content %}
{% if query.pop %}<div class="fb_breadcrumbs">{{ breadcrumbs }}</div>{% endif %}
<div id="content-main">
    <form enctype="multipart/form-data" action="?{{ query.pop }}" method="post">
    <div>
        {% if error %}<p class="errornote">{{ error.headline }}</p>{% endif %}
        <div class="fieldset">
        	<h1>Crea directory</h1>
        {% if error %}<div class="form-row errors">{% else %}<div class="form-row">{% endif %}
            {% if error.error_msg %}<ul class="errorlist"><li>{{ error.error_msg }}</li></ul>{% endif %}
            <label for="id_name" class="required">Directory</label>
            <input type="text" id="id_name" class="vTextField required" name="name" size="50" value="" maxlength="30" />
            <p class="help"><em>Il nome della cartella verr&agrave; convertito direttamente in caratteri minuscoli.
            <br /><strong>Sono accettati solo lettere, numeri e hypens.</strong></em></p>
        </div>
        </div>
        <div class="submit-row">
            <input type="submit" value="Crea la cartella" class="default" />
        </div>
    </div>
    </form>
</div>
{% endblock %}
